import { createRouter, createWebHistory,createWebHashHistory} from "vue-router";

const router = createRouter({
  // history: createWebHistory(),
  history:createWebHashHistory(),
  routes: [
    {
      path: "/",
      redirect: "/index",
      children: [
        {
          path: "qa",
          component: () => import("@/views/Qa.vue"),
        },
        {
          path: "article",
          component: () => import("@/views/Article.vue"),
        },
        {
            path: "index",
            component: () => import("@/views/Index.vue"),
        },
      ],
    },

  ],
});

export default router;
